package opera;

import book.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-12-20
 * Time: 10:19
 */
public class ShowOperation implements IOperation {
    public void work(BookList bookList) {
        System.out.println("打印所有图书");
        int currentSize = bookList.getUseSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
